package org.finesys.ai.service;

import org.finesys.ai.entity.AigcKnowledge;
import org.finesys.common.mp.core.service.BaseService;

import java.util.List;

public interface AigcKnowledgeService extends BaseService<AigcKnowledge> {

    boolean saveKnowledge(AigcKnowledge knowledge);

    boolean updateKnowledge(AigcKnowledge knowledge);
    /**
     * 获取知识库信息
     */
    AigcKnowledge getKnowledgeById(String id);

    /**
     * 删除知识库
     */
    boolean deleteKnowledge(String[] ids);


    List<AigcKnowledge> build(List<AigcKnowledge> knowledgeList);
}
